package com.xinqi.common.third.oss.slice.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * OSS配置
 *
 * @author dzy
 * @date 2023/2/18
 */
@Data
@Component
@ConfigurationProperties(prefix = "slice")
public class OssSliceConfig {

    /**
     * 阿里KEY
     */
    private String accessKey;

    /**
     * 阿里SCREEN
     */
    private String screenKey;

    /*阿里endPoint*/
    private String endPoint;

    /**
     * 阿里projectName
     */
    private String projectName;

    /**
     * 阿里源地址前缀
     */
    private String sourceUrlPrefix;

    /**
     * 阿里生成地址前缀
     */
    private String targetUrlPrefix;

    /**
     * 阿里生成地址类型
     */
    private String targetType;

    /**
     * RocketMq-配置
     */
    private String mqTopic;
    private String mqInstanceId;
    private String mqEndpoint;

    /**
     * OSS slice配置
     */
    private String ossBucketName;
    private String ossEndpoint;
    private String ossHttpUrl;
    private String ossHttpsUrl;

    /**
     * OSS文件存储配置
     */
    private String ossSourceHttpUrl;
    private String ossSourceHttpsUrl;

}
